<%@ page import="java.util.List" %>
<%@ page import="com.bdqn.pojo.NewType" %>
<%@ page import="com.bdqn.dao.NewTypeDao" %><%--
  Created by IntelliJ IDEA.
  User: ASUS
  Date: 2023/9/1
  Time: 9:41
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <%@ page isELIgnored="false" %>
    <% List<NewType> list= NewTypeDao.getlist();
       request.setAttribute("obj",list);
    %>
</head>
<body>
  <jsp:include page="Top.jsp"></jsp:include>
     类型管理
     <hr />
     <table>
         <c:forEach var="i" items="${obj}">
             <tr>
                 <td>${i.id}</td>
                 <td>${i.name}</td>
                 <td><a href="TypeUpdate.jsp?id=${i.id}">修改</a> </td>
             </tr>
         </c:forEach>
     </table>

  <jsp:include page="Bom.jsp"></jsp:include>

</body>
</html>
